import requests

headers = {
    'Authorization': 'Basic YWRtaW4td2ViOjByUGF3TnoyY0hiSzZkSStkcEZHbnc9PQ==',
    'Content-Type': 'application/x-www-form-urlencoded'
}

data = {
    'username': 'yanhaifeng',
    'password': 'feng@95821250.',
    'grant_type': 'password'
}

r = requests.post('http://iicloud-dev.sinochem.com/api/auth/oauth/token', headers=headers, data=data, verify=False)

# 转码后返回内容
# print(r.content.decode())

# 用json格式解析后的内容
print(r.json()['data']['access_token'])
